﻿
namespace LanguageExt;

/// <summary>
/// A ratio between two values.
/// </summary>
/// <remarks>
/// This is used in the definition of Fractional.
/// </remarks>
public readonly struct Ratio<A> 
{
    /// <summary>
    /// The numerator of the ratio, in non-reduced form.
    /// </summary>
    public readonly A Numerator;

    /// <summary>
    /// The denominator of the ratio, in non-reduced form.
    /// </summary>
    public readonly A Denominator;

    public Ratio(A num, A den)
    {
        Numerator = num;
        Denominator = den;
    }
}
